/**
 * 封装 继承 多肽
 */
interface Person{
    run():void;
}

interface Man extends Person{
    power():void;
}

interface Animal{
    fuck():void;
}

abstract class People{
    static height:number;
    protected name:string;
    constructor(name:string){
        this.name=name;
    }
    say():void{
        console.log("hello my name is "+this.name);
    }
    abstract run():void;
    static jump(){
        console.log("static jump");
        People.height=5;
        console.log(People.height);
    }
}

class Student extends People implements Man,Animal{
    constructor(name:string){
        super(name);
    }
    fuck() {
        console.log("student running");
    }
    run() {
        console.log("student running");
    }
    power(): void {
        console.log("I man i have power");
    }

    read(){
        console.log("hello I can read my name:"+this.name);
    }
}

class Teacher extends People {
    run(): void {
        console.log("teacher running");
    }
}

var s=new Student("Tom");
var t=new Teacher("Lily");
Student.jump();
s.say();
s.power();
s.read();
s.run();
t.run();